from week3.Page.Page import Page
from week3.Page.Page1 import Page1
import pytest,time
from selenium import webdriver
from week3.Tools.Tools import Tools
import logging
@pytest.fixture
def driver():
    driver = webdriver.Edge()
    Tools().log()
    yield driver
    driver.quit()

class Test_case():
    def test_login_001(self,driver):
        logging.info('login')
        po = Page(driver)
        po.badu_login_001()
    def test_search_002(self,driver):
        logging.info('search')
        po = Page1(driver)
        po.search_badu_002()
if __name__ == '__main__':
    pytest.main()